package com.ukao.cashregister.adapter;

import android.content.Context;
import android.widget.TextView;

import com.mcxtzhang.commonadapter.rv.CommonAdapter;
import com.mcxtzhang.commonadapter.rv.ViewHolder;
import com.ukao.cashregister.R;
import com.ukao.cashregister.bean.SendModeBean;

import java.util.List;

/**
 * VIP  组员列表
 */

public class SendModeAdapter extends CommonAdapter<SendModeBean> {





    public SendModeAdapter(Context context, List<SendModeBean> datas   ) {
        super(context, datas, R.layout.choose_time_item);
    }




    @Override
    public void convert(ViewHolder holder, SendModeBean item) {
        TextView   tagTxt=holder.getView(R.id.tag_txt);
        tagTxt.setText(item.getShowText());



        if (item.isCheck()){
            tagTxt.setBackgroundResource(R.drawable.add_list_item_checked);
            tagTxt.setTextColor(mContext.getResources().getColor(R.color.white));
        }else{

            tagTxt.setBackgroundResource(R.drawable.add_list_item);
            tagTxt.setTextColor(mContext.getResources().getColor(R.color.black));

        }








    }






}
